package com.chb.demo.dao;

import com.chb.demo.entity.Company;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

public interface CompanyDao extends JpaRepository<Company,Integer> {
    @Query("select c from Company c where c.account=?1 and c.password=?2")
    Company loginCheck(String account,String password);

    Company findByDisplayname(String name);
}
